package cn.lanqiao.ui;

import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.Toolkit;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;



import java.awt.Color;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.SwingConstants;
import javax.swing.JTextField;
import javax.swing.JCheckBox;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class LoginFrm extends JFrame {

	private JPanel contentPane;
	private JTextField txt_user;
	private JTextField txt_pass;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					LoginFrm frame = new LoginFrm();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public LoginFrm() {
		setIconImage(Toolkit.getDefaultToolkit().getImage(MainFrmTeacher.class.getResource("/cn/lanqiao/img/logo.png")));
		setTitle("登录/注册");
		setResizable(false);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBackground(Color.WHITE);
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		txt_user = new JTextField();
		txt_user.setBounds(104, 93, 281, 21);
		contentPane.add(txt_user);
		txt_user.setColumns(10);
		
		JCheckBox chk_teacher = new JCheckBox("教练");
		chk_teacher.setBackground(Color.WHITE);
		chk_teacher.setBounds(104, 178, 65, 23);
		contentPane.add(chk_teacher);
		
		txt_pass = new JTextField();
		txt_pass.setColumns(10);
		txt_pass.setBounds(104, 135, 281, 21);
		contentPane.add(txt_pass);
		
		JCheckBox chk_user = new JCheckBox("学员");
		chk_user.setBackground(Color.WHITE);
		chk_user.setBounds(192, 178, 65, 23);
		contentPane.add(chk_user);
		
		JCheckBox chk_rember = new JCheckBox("记住密码");
		chk_rember.setBackground(Color.WHITE);
		chk_rember.setBounds(286, 178, 82, 23);
		contentPane.add(chk_rember);
		
		JButton btnNewButton = new JButton("New button");
		btnNewButton.setIcon(new ImageIcon(LoginFrm.class.getResource("/cn/lanqiao/img/loginAn.png")));
		btnNewButton.setBounds(197, 226, 188, 35);
		contentPane.add(btnNewButton);
		
		JButton button = new JButton("New button");
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {

				
			}
		});
		button.setIcon(new ImageIcon(LoginFrm.class.getResource("/cn/lanqiao/img/registAn.png")));
		button.setBounds(57, 224, 112, 38);
		contentPane.add(button);
		
		JLabel lblNewLabel = new JLabel("New label");
		lblNewLabel.setIcon(new ImageIcon(LoginFrm.class.getResource("/cn/lanqiao/img/backgroud.png")));
		lblNewLabel.setBounds(0, 0, 444, 271);
		contentPane.add(lblNewLabel);
	}
}
